package edu.scu.declaresys.web.action;

import com.opensymphony.xwork2.Action;
import com.opensymphony.xwork2.ModelDriven;

import edu.scu.declaresys.service.ServiceFactory;
import edu.scu.declaresys.service.intr.IMsgService;
import edu.scu.declaresys.vo.Msg;
import edu.scu.declaresys.web.ABaseAction;

public class MsgAction extends ABaseAction implements ModelDriven<Msg>
{
	private static final long	serialVersionUID	= -4222177459001407244L;

	@SuppressWarnings("unused")
	private IMsgService msgService = ServiceFactory.createMsgService();
	
	private Msg msg = new Msg();
	
	private Integer page;
	//
	// 发信息
	//
	public String msgWrite() throws Exception
	{
		
		return Action.SUCCESS;
	}
	
	public String msgSend() throws Exception
	{
		return Action.SUCCESS;
	}
	
	//
	// 收件箱 与 已发送
	//
	public String msgReceived() throws Exception
	{
		return Action.SUCCESS;
	}
	
	public String msgHasSend() throws Exception
	{
		return Action.SUCCESS;
	}
	
	//
	// 显示信息
	//
	public String msgDetail() throws Exception
	{
		
		return Action.SUCCESS;
	}
	
	
	//
	// Getters and Setters
	//
	@Override
	public Msg getModel()
	{
		return msg;
	}


	public Msg getMsg()
	{
		return msg;
	}


	public void setMsg(Msg msg)
	{
		this.msg = msg;
	}


	public Integer getPage()
	{
		return page;
	}


	public void setPage(Integer page)
	{
		this.page = page;
	}
	
	
}
